import openai,os

openai.api_key = os.environ["OPENAI_API_KEY_ZHIHU"]
openai.api_base= os.environ["OPENAI_API_BASE_ZHIHU"]


response = openai.Image.create(
  model="dall-e-3",
  prompt="a white siamese cat",
  size="1024x1024",
  quality="standard",
  n=1,
)

image_url = response.data[0].url
print(image_url)

#https://oaidalleapiprodscus.blob.core.windows.net/private/org-Z9jAaBDyOmxKNGjdewRehSkP/user-AX70bysooFRTKCPBLy9VM1EC/img-pkPHSPq0m23NDYMcB8JwHMiK.png?st=2024-02-18T16%3A51%3A35Z&se=2024-02-18T18%3A51%3A35Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-18T13%3A47%3A17Z&ske=2024-02-19T13%3A47%3A17Z&sks=b&skv=2021-08-06&sig=UURYuwytrPGskDECrQjAStCwHYU5W4/SI8AjvXkCPhs%3D
#https://oaidalleapiprodscus.blob.core.windows.net/private/org-Z9jAaBDyOmxKNGjdewRehSkP/user-AX70bysooFRTKCPBLy9VM1EC/img-zDECydiiNGsZzC9wGnTAJWs3.png?st=2024-02-18T16%3A30%3A51Z&se=2024-02-18T18%3A30%3A51Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-18T17%3A25%3A07Z&ske=2024-02-19T17%3A25%3A07Z&sks=b&skv=2021-08-06&sig=KVSYCQ3Qityd1M7N4dntcFDR4YkvzbTfCRp16ns/T%2Bs%3D